﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using WroxGallery.Models;

namespace WroxGallery.Tests.Models
{
    /// <summary>
    /// Summary description for PhotoTest
    /// </summary>
    [TestClass]
    public class PhotoTest
    {

        [TestMethod]
        public void Photo_Can_Set_Photo_Title()
        {
            Photo photo = new Photo();
            photo.Title = "Title";
            Assert.AreEqual("Title",photo.Title);
        }

        [TestMethod]
        public void Photo_Can_Set_Photo_Description()
        {
            Photo photo = new Photo();
            photo.Description = "Description";
            Assert.AreEqual("Description", photo.Description);
        }

        [TestMethod]
        public void Photo_Can_Set_Photo_Url()
        {
            Photo photo = new Photo();
            photo.Url = "http://mydomain.com/photo/myphoto.jpg";
            Assert.AreEqual("http://mydomain.com/photo/myphoto.jpg", photo.Url);
        }

    }
}
